﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Data.Entity;
using WCFThree.Entity;
using WCFThree.Abstract;

namespace WCFThree.Factory
{
  public  class ScoreOperate:BaseOperate,IScore
    {
        /// <summary>
        /// 获取表达式树
        /// </summary>
        /// <returns></returns>
        public DbSet<score> GetDbSet()
        {
            return Context.scores;
        }
        /// <summary>
        /// 获取学生的成绩列表
        /// </summary>
        /// <param name="sno">学生编号</param>
        /// <returns></returns>
        public List<score> GetList_Stu(string sno)
        {
            return GetDbSet().Where(q => q.sno == sno).ToList();
        }
    }
}
